package app.fugema.shop.main.goods.vm;

import android.app.Application;

import com.base.common.netBeanPackage.LiveDataWrapper;
import com.base.common.viewmodel.BaseViewModel;
import app.fugema.shop.http.HttpService;
import app.fugema.shop.main.goods.model.VShopCateResult;
import app.fugema.shop.main.goods.model.VShopInfoResult;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

public class ShopVM extends BaseViewModel {




    public ShopVM(@NonNull Application application)
    {
        super(application);
    }


    /**
     * 查询 微店分类 by ID
     * @param shopId
     * @return
     */
    public MutableLiveData<LiveDataWrapper<VShopCateResult>> getShopCategoryById(int shopId)
    {
        return send(HttpService.getHttpServer().getShopCategoryById(shopId));
    }

    /**
     * 查询 店铺简介
     * @param shopId
     * @return
     */
    public MutableLiveData<LiveDataWrapper<VShopInfoResult>> getShopIntroduce(int shopId)
    {
        return send(HttpService.getHttpServer().getVShopIntroduce(shopId));
    }

}
